package com.yh.doing.Mediator;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-11 00:12
 * @problem:
 **/
public class MysqlColleague extends Colleague{
    public MysqlColleague(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void add(String str) {

        System.out.println("mysql add:"+str);

    }

    @Override
    public void mediatorExecutor( String str) {
        add(str);
        super.mediator.mediatorExecutor(MysqlColleague.class,str);
    }


}
